﻿using System.Web;
using System.Web.Mvc;
using UniversityCourses.Filters;

namespace UniversityCourses
{
    public class FilterConfig
    {
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            HandleErrorAttribute handleErrorAttribute = new HandleErrorAttribute();
            handleErrorAttribute.View = "Error";
            filters.Add(handleErrorAttribute);
        }
    }
}